#include <iostream>
#include <queue>
#include <vector>
using namespace std;


int main(){
    priority_queue<int, vector<int>, less<int>> queue;
    for(int i = 0; i < 10; i++){
        queue.push(i + 1);
    }
    for(int i = 0; i < 10; i++){
        cout<<queue.top()<<endl;
        queue.pop();
    }
    return 0;
}